package org.fhawk.microservice.consumer.controller;

import org.fhawk.microservice.consumer.service.ConsumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumerController {

    @Autowired
    ConsumerService service;

    @GetMapping("/hi")
    public String hello(String name) {
        return service.hello(name);
    }
}
